//
//  EPNetConstant.h
//  EnvironmentalProtection
//
//  Created by HCreater on 2018/5/22.
//  Copyright © 2018年 HCreater. All rights reserved.
//

#ifndef EPNetConstant_h
#define EPNetConstant_h

//接口工具
#define url_baseurl @"https://minapp.epbcloud.com"

//接口请求地址
#define url_interface @"https://minapp.epbcloud.com/index.php"
#define url_interface_format [NSString stringWithFormat:@"%@/Api/%%@/%%@", url_interface]
//#define url_interface [[NSUserDefaults standardUserDefaults] objectForKey:@"MainUrl"]
//#define url_interface_format [NSString stringWithFormat:@"%@/api/%%@", url_interface]

#pragma mark - 接口相关

#pragma mark --------------------------------- v2.0 接口
#pragma mark ------------------ 全局接口
#pragma mark --- 取省
#define url_interface_getprovincelist HCStrUrlFormat(url_interface_format, @"Public", @"get_province_list")

#pragma mark --- 取市
#define url_interface_getcitylist HCStrUrlFormat(url_interface_format, @"Public", @"get_city_list")
#define interface_param_getcitylist(areaID) @{@"area_id":areaID} /*（1焦点要闻2环保要闻）*/

#pragma mark --- 获取宣言列表
#define url_interface_getdeclarationlist HCStrUrlFormat(url_interface_format, @"Public", @"get_declaration_list")

#pragma mark --- 获取验证码
#define url_interface_sendMessage HCStrUrlFormat(url_interface_format, @"Message", @"sendMessage")
#define interface_param_sendMessage(mobile) @{@"mobile":mobile}

#pragma mark --- 获取生态币说明
#define url_interface_getmessagedetail HCStrUrlFormat(url_interface_format, @"System", @"get_message_detail")
#define interface_param_getmessagedetail() @{@"message_id":@"1"}


#pragma mark ------------------ 消息
#pragma mark --- 获取验证码
#define url_interface_systemmessage HCStrUrlFormat(url_interface_format, @"System", @"get_system_message")
#define interface_param_systemmessage(page, size) @{@"page":page, @"size":size}


#pragma mark ------------------ 首页接口
#pragma mark --- 轮播图
#define url_interface_bannerlist HCStrUrlFormat(url_interface_format, @"System", @"bannerList")
#define interface_bannerlist_params(type, areaID) @{@"type":type, @"area_id":areaID}

#pragma mark --- 顶部tabs
#define url_interface_topnav HCStrUrlFormat(url_interface_format, @"Index", @"topNav")

#pragma mark --- 首页内容
#define url_interface_mainindex HCStrUrlFormat(url_interface_format, @"Index", @"index")
#define interface_mainindex_params(areaID) @{@"area_id":areaID}

#pragma mark --- 首页换一批
#define url_interface_mainreplace HCStrUrlFormat(url_interface_format, @"Article", @"replace")
#define interface_param_mainreplace(type) @{@"type":type} /*（1焦点要闻2环保要闻）*/


#pragma mark ------------------ 随手拍接口
#define url_interface_circleList HCStrUrlFormat(url_interface_format, @"Circle", @"circleList")
#define interface_param_circleList(page, size, userID, category, type, areaID) @{@"page":page, @"size":size, @"user_id":userID, @"category":category, @"type":type, @"area_id":areaID}

#pragma mark --- 随手拍详情
#define url_interface_circleDetail HCStrUrlFormat(url_interface_format, @"Circle", @"circleDetail")
#define interface_param_circleDetail(circleID) @{@"circle_id":circleID}

#pragma mark --- 转发
#define url_interface_transmit HCStrUrlFormat(url_interface_format, @"Circle", @"transmit")
#define interface_param_transmit(userID, circleID, type) @{@"user_id":userID, @"circle_id":circleID, @"type":type}

#pragma mark --- 点赞/取消
#define url_interface_praise HCStrUrlFormat(url_interface_format, @"Circle", @"praise")
#define interface_param_praise(userID, circleID, type) @{@"user_id":userID, @"circle_id":circleID, @"type":type}

#pragma mark --- 评论
#define url_interface_comment HCStrUrlFormat(url_interface_format, @"Circle", @"comment")
#define interface_param_comment(userID, circleID, type, content) @{@"user_id":userID, @"circle_id":circleID, @"type":type, @"content":content}

#pragma mark --- 发布
#define url_interface_release HCStrUrlFormat(url_interface_format, @"Circle", @"release")
#define interface_param_release(userID, type, content, images, lat, lng, areaID) [AFUploadImageShell createWithImgs:images params:@{@"user_id":userID, @"type":type, @"content":content, @"lat":lat, @"lng":lng, @"area_id":areaID}]

#pragma mark --- 点赞/转发/评论列表
#define url_interface_circleparameter HCStrUrlFormat(url_interface_format, @"Circle", @"parameter")
#define interface_param_circleparameter(circleID, type, page, size) @{@"circle_id":circleID, @"type":type, @"page":page, @"size":size}

#pragma mark --- 删除
#define url_interface_circleDel HCStrUrlFormat(url_interface_format, @"Circle", @"circleDel")
#define interface_param_circleDel(userID, circleID) @{@"user_id":userID, @"circle_id":circleID}


#pragma mark ------------------ 用户接口
#pragma mark --- 微信登录
#define url_interface_wechatLogin HCStrUrlFormat(url_interface_format, @"User", @"wechatLogin")
#define interface_param_wechatLogin(wxOpenID, wxNickName, wxHeadImg) @{@"wx_openid":wxOpenID, @"wx_nickname":wxNickName, @"wx_headimg":wxHeadImg}

#pragma mark --- 密码登录/短信登录
#define url_interface_login HCStrUrlFormat(url_interface_format, @"User", @"login")
#define interface_param_login(mobile, password, code, type) @{@"mobile":mobile, @"password":password, @"code":code, @"type":type}

#pragma mark --- 注册
#define url_interface_register HCStrUrlFormat(url_interface_format, @"User", @"register")
#define interface_param_register(mobile, password, code) @{@"mobile":mobile, @"password":password, @"code":code}

#pragma mark --- 绑定手机/个人认证
#define url_interface_bindingmobile HCStrUrlFormat(url_interface_format, @"User", @"bindingMobile")
#define interface_param_bindingmobile(userID, mobile, password) @{@"user_id":userID, @"mobile":mobile, @"password":password}

#pragma mark --- 绑定手机/个人认证
#define url_interface_usertop HCStrUrlFormat(url_interface_format, @"User", @"userTop")
#define interface_param_usertop(userID) @{@"user_id":userID}

#pragma mark --- 用户详情(审核用)
#define url_interface_userdetail HCStrUrlFormat(url_interface_format, @"User", @"userDetail")
#define interface_param_userdetail(userID) @{@"user_id":userID}


#pragma mark ------------------ 个人中心接口
#pragma mark --- 获取用户信息
#define url_interface_userInfo HCStrUrlFormat(url_interface_format, @"User", @"userInfo")
#define interface_param_userInfo(userID) @{@"user_id":userID}

#pragma mark --- 忘记密码
#define url_interface_passwordset HCStrUrlFormat(url_interface_format, @"User", @"passwordSet")
#define interface_param_passwordset(mobile, password) @{@"mobile":mobile, @"password":password}

#pragma mark --- 修改密码
#define url_interface_passwordedit HCStrUrlFormat(url_interface_format, @"User", @"passwordEdit")
#define interface_param_passwordedit(userID, password, newPassword) @{@"user_id":userID, @"password":password, @"new_password":newPassword}

#pragma mark --- 修改头像
#define url_interface_user_uploadimage HCStrUrlFormat(url_interface_format, @"User", @"upload_image")
#define interface_param_user_uploadimage(userID, img) @{@"user_id":userID, @"image":img}

#pragma mark --- 修改资料
#define url_interface_user_perfectuploads HCStrUrlFormat(url_interface_format, @"User", @"perfectUploads")
#define interface_param_user_perfectuploads(userID, nickname, sex, areaID, declaration, birth) @{@"user_id":userID, @"nickname":nickname, @"sex":sex, @"area_id":areaID, @"declaration":declaration, @"birth":birth}

#pragma mark --- 我的收藏
#define url_interface_user_collection HCStrUrlFormat(url_interface_format, @"User", @"userCollect")
#define interface_param_user_collection(userID, pageindex, pagesize) @{@"user_id":userID}

#pragma mark --- 生态币信息
#define url_interface_user_userMoney HCStrUrlFormat(url_interface_format, @"User", @"userMoney")
#define interface_param_user_userMoney(userID) @{@"user_id":userID}


#pragma mark ------------------ 文章列表接口
#pragma mark --- 获取文库分类列表
#define url_interface_getlibrarylist HCStrUrlFormat(url_interface_format, @"Article", @"get_library_type")

#pragma mark --- 获取文章列表
#define url_interface_getcatelist HCStrUrlFormat(url_interface_format, @"Article", @"get_cate_list")
#define interface_param_getcatelist(cateID, areaID, page, size) @{@"cate_id":cateID, @"area_id":areaID, @"page":page, @"size":size}

#pragma mark --- 获取文章详情
#define url_interface_articledetail HCStrUrlFormat(url_interface_format, @"Article", @"article")
#define interface_param_articledetail(articleID, userID) @{@"article_id":articleID, @"user_id":userID}

#pragma mark --- 获取文章点赞、评论、收藏列表接口
#define url_interface_getarticleparameter HCStrUrlFormat(url_interface_format, @"Article", @"get_article_parameter")
#define interface_param_getarticleparameter(articleID, type, page, size) @{@"article_id":articleID, @"type":type, @"page":page, @"size":size}

#pragma mark --- 用户添加收藏跟取消收藏，点赞及取消点赞接口
#define url_interface_articlecollect HCStrUrlFormat(url_interface_format, @"Article", @"collect")
#define interface_param_articlecollect(userID, type, articleID) @{@"user_id":userID, @"type":type, @"article_id":articleID}

#pragma mark --- 我的生态文献
#define url_interface_mystwx HCStrUrlFormat(url_interface_format, @"Article", @"user_words")
#define interface_param_mystwx(userID, page, size) @{@"user_id":userID, @"page":page, @"size":size}

#pragma mark --- 上传生态文献
#define url_interface_stwxupload HCStrUrlFormat(url_interface_format, @"Article", @"works_upload")
#define interface_param_stwxupload(userID, title, content, summary, areaID) @{@"user_id":userID, @"title":title, @"content":content, @"summary":summary, @"area_id":areaID}

#pragma mark --- 编辑生态文献
#define url_interface_stwx_wordedit HCStrUrlFormat(url_interface_format, @"Article", @"wordEdit")
#define interface_param_stwx_wordedit(userID, title, content, summary, articleID) @{@"user_id":userID, @"title":title, @"content":content, @"summary":summary, @"article_id":articleID}

#pragma mark --- 删除生态文献
#define url_interface_stwxdel HCStrUrlFormat(url_interface_format, @"Article", @"articleDel")
#define interface_param_stwxdel(articleID) @{@"article_id":articleID}

#pragma mark --- 我的环保公示
#define url_interface_usernotice HCStrUrlFormat(url_interface_format, @"Article", @"user_notice")
#define interface_param_usernotice(userID, cateID, page, size) @{@"user_id":userID, @"cate_id":cateID, @"page":page, @"size":size}

#pragma mark --- 获取环保公示类型
#define url_interface_noticetype HCStrUrlFormat(url_interface_format, @"Article", @"notice_type")

#pragma mark --- 我的文档
#define url_interface_userlibrary HCStrUrlFormat(url_interface_format, @"Article", @"user_library")
#define interface_param_userlibrary(userID) @{@"user_id":userID}

#pragma mark --- 文章搜索
#define url_interface_articlesearch HCStrUrlFormat(url_interface_format, @"Article", @"article_search")
#define interface_param_articlesearch(content, cateID, areaID, userID, page, size) @{@"content":content, @"cate_id":cateID, @"area_id":areaID, @"user_id":userID, @"page":page, @"size":size}

#pragma mark --- 文章下载扣费
#define url_interface_downloadfee HCStrUrlFormat(url_interface_format, @"Article", @"downloadFee")
#define interface_param_downloadfee(userID, articleID) @{@"user_id":userID, @"article_id":articleID}


#pragma mark ------------------ 签到接口
#pragma mark --- 获取签到信息
#define url_interface_sign HCStrUrlFormat(url_interface_format, @"User", @"sign")
#define interface_param_sign(userID) @{@"user_id":userID}

#pragma mark --- 签到
#define url_interface_signin HCStrUrlFormat(url_interface_format, @"User", @"signIn")
#define interface_param_signin(userID) @{@"user_id":userID}

#pragma mark --- 签到活动列表
#define url_interface_signinactivitylist HCStrUrlFormat(url_interface_format, @"System", @"get_activity_list")
#define interface_param_signinactivitylist(userID) @{@"user_id":userID}


#pragma mark ------------------ 专家中心接口
#pragma mark --- 上传专家图片
#define url_interface_uploadexamineimage HCStrUrlFormat(url_interface_format, @"Expert", @"upload_examine_image")
#define interface_param_uploadexamineimage(userID, image, type) @{@"user_id":userID, @"image":image, @"type":type}

#pragma mark --- 删除专家图片
#define url_interface_deleteexamineimage HCStrUrlFormat(url_interface_format, @"Expert", @"delete_examine_image")
#define interface_param_deleteexamineimage(imageID) @{@"image_id":imageID}

#pragma mark --- 获取专家信息
#define url_interface_expertInfo HCStrUrlFormat(url_interface_format, @"Expert", @"expertInfo")
#define interface_param_expertInfo(userID) @{@"user_id":userID}

#pragma mark --- 修改专家审核
#define url_interface_summaryedit HCStrUrlFormat(url_interface_format, @"Expert", @"summaryEdit")
#define interface_param_summaryedit(expertID, contacts, mobile, summary, status) @{@"expert_id":expertID, @"contacts":contacts, @"mobile":mobile, @"summary":summary, @"status":status}

#pragma mark --- 提交专家审核
#define url_interface_submitexamine HCStrUrlFormat(url_interface_format, @"Expert", @"submitExamine")
#define interface_param_submitexamine(userID, contacts, mobile, summary) @{@"user_id":userID, @"contacts":contacts, @"mobile":mobile, @"summary":summary}


#pragma mark ------------------ 机构中心接口
#pragma mark --- 上传机构图片
#define url_interface_institution_uploadexamineimage HCStrUrlFormat(url_interface_format, @"Institution", @"upload_examine_image")
#define interface_param_institution_uploadexamineimage(userID, image, type) @{@"user_id":userID, @"image":image, @"type":type}

#pragma mark --- 删除机构图片
#define url_interface_institution_deleteexamineimage HCStrUrlFormat(url_interface_format, @"Institution", @"delete_examine_image")
#define interface_param_institution_deleteexamineimage(imageID) @{@"image_id":imageID}

#pragma mark --- 获取机构信息
#define url_interface_institutionnfo HCStrUrlFormat(url_interface_format, @"Institution", @"institutionnfo")
#define interface_param_institutionnfo(userID) @{@"user_id":userID}

#pragma mark --- 修改机构简介
#define url_interface_institution_summaryedit HCStrUrlFormat(url_interface_format, @"Institution", @"summaryEdit")
#define interface_param_institution_summaryedit(institutionID, category, mobile, contacts, name, address, areaID, service, summary, status) @{@"institution_id":institutionID, @"category":category, @"mobile":mobile, @"contacts":contacts, @"name":name, @"address":address, @"area_id":areaID, @"service":service, @"summary":summary, @"status":status}

#pragma mark --- 修改机构服务内容
#define url_interface_institution_serviceedit HCStrUrlFormat(url_interface_format, @"Institution", @"serviceEdit")
#define interface_param_institution_serviceedit(institutionID, service) @{@"institution_id":institutionID, @"service":service}

#pragma mark --- 提交机构认证
#define url_interface_institution_submitexamine HCStrUrlFormat(url_interface_format, @"Institution", @"submitExamine")
#define interface_param_institution_submitexamine(userID, category, mobile, contacts, name, address, areaID, service, summary) @{@"user_id":userID, @"category":category, @"mobile":mobile, @"contacts":contacts, @"name":name, @"address":address, @"area_id":areaID, @"service":service, @"summary":summary}

#pragma mark --- 获取最新加入机构接口
#define url_interface_institution_newadd HCStrUrlFormat(url_interface_format, @"Institution", @"newadd")
#define interface_param_institution_newadd(pageindex, pagesize) @{@"page":pageindex, @"size":pagesize}

#pragma mark --- 获取分类机构列表
#define url_interface_institution_institutionList HCStrUrlFormat(url_interface_format, @"Institution", @"institutionList")
#define interface_param_institution_institutionList(category, areaID, pageindex, pagesize) @{@"category":category, @"area_id":areaID, @"page":pageindex, @"size":pagesize}


#pragma mark ------------------ 企业中心接口
#pragma mark --- 上传企业图片
#define url_interface_enterprise_uploadexamineimage HCStrUrlFormat(url_interface_format, @"Enterprise", @"upload_examine_image")
#define interface_param_enterprise_uploadexamineimage(userID, image) @{@"user_id":userID, @"image":image}

#pragma mark --- 删除企业图片
#define url_interface_enterprise_deleteexamineimage HCStrUrlFormat(url_interface_format, @"Enterprise", @"delete_examine_image")
#define interface_param_enterprise_deleteexamineimage(imageID) @{@"image_id":imageID}

#pragma mark --- 获取企业信息
#define url_interface_enterpriseInfo HCStrUrlFormat(url_interface_format, @"Enterprise", @"enterpriseInfo")
#define interface_param_enterpriseInfo(userID) @{@"user_id":userID}

#pragma mark --- 修改企业简介
#define url_interface_enterprise_summaryedit HCStrUrlFormat(url_interface_format, @"Enterprise", @"summaryEdit")
#define interface_param_enterprise_summaryedit(enterpriseID, mobile, contacts, name, areaID, address, summary, status) @{@"enterprise_id":enterpriseID, @"mobile":mobile, @"contacts":contacts, @"name":name, @"area_id":areaID, @"address":address, @"summary":summary, @"status":status}

#pragma mark --- 提交企业认证
#define url_interface_enterprise_submitexamine HCStrUrlFormat(url_interface_format, @"Enterprise", @"submitExamine")
#define interface_param_enterprise_submitexamine(userID, mobile, contacts, name, areaID, address, summary) @{@"user_id":userID, @"mobile":mobile, @"contacts":contacts, @"name":name, @"area_id":areaID, @"address":address, @"summary":summary}


#pragma mark ------------------ 咨询接口

#pragma mark --- 环保咨询列表
#define url_interface_consultnewest HCStrUrlFormat(url_interface_format, @"Consult", @"newest")
//#define interface_param_consultnewest_search(search, pageindex, pagesize) @{@"search":search, @"page":pageindex, @"size":pagesize}
#define interface_param_consultnewest_my(userID, expertID, type, pageindex, pagesize) @{@"user_id":userID, @"expert_id":expertID, @"type":type, @"page":pageindex, @"size":pagesize}

#pragma mark --- 环保咨询搜索
#define url_interface_consultsearch HCStrUrlFormat(url_interface_format, @"Consult", @"search")
#define interface_param_consultsearch(search, pageindex, pagesize) @{@"search":search, @"page":pageindex, @"size":pagesize}

#pragma mark --- 环保咨询提交
#define url_interface_consultsubmit HCStrUrlFormat(url_interface_format, @"Consult", @"submit")
#define interface_param_consultsubmit(userID, type, expertID, title, content, money, image) @{@"user_id":userID, @"type":type, @"expert_id":expertID, @"title":title, @"content":content, @"money":money, @"image":image}

#pragma mark --- 环保专家列表
#define url_interface_consult_expertlist HCStrUrlFormat(url_interface_format, @"Consult", @"expertList")
#define interface_param_consult_expertlist(pageindex, pagesize) @{@"page":pageindex, @"size":pagesize}

#pragma mark --- 咨询回复列表
#define url_interface_consult_replylist HCStrUrlFormat(url_interface_format, @"Consult", @"replyList")
#define interface_param_consult_replylist(consultID, pageindex, pagesize) @{@"consult_id":consultID, @"page":pageindex, @"size":pagesize}

#pragma mark --- 咨询详情
#define url_interface_consult_detail HCStrUrlFormat(url_interface_format, @"Consult", @"detail")
#define interface_param_consult_detail(consultID, userID) @{@"consult_id":consultID, @"user_id":userID}

#pragma mark --- 设置答案
#define url_interface_consult_setanswer HCStrUrlFormat(url_interface_format, @"Consult", @"setAnswer")
#define interface_param_consult_setanswer(consultID, replyID) @{@"consult_id":consultID, @"reply_id":replyID}

#pragma mark --- 回复
#define url_interface_consult_reply HCStrUrlFormat(url_interface_format, @"Consult", @"reply")
#define interface_param_consult_reply(consultID, expertID, content) @{@"consult_id":consultID, @"expert_id":expertID, @"content":content}


#pragma mark ------------------ 支付接口
#pragma mark --- 创建订单
#define url_interface_order_paysubmit HCStrUrlFormat(url_interface_format, @"Order", @"paySubmit")
#define interface_param_order_paysubmit(userID, money) @{@"user_id":userID, @"money":money}

#pragma mark --- 支付回调
#define url_interface_order_paynotify HCStrUrlFormat(url_interface_format, @"Order", @"payNotify")
#define interface_param_order_paynotify(orderID) @{@"order_id":orderID}

#pragma mark --- 生态积分兑换生态币接口
#define url_interface_order_integralconvert HCStrUrlFormat(url_interface_format, @"Order", @"integralConvert")
#define interface_param_order_integralconvert(userID, money) @{@"user_id":userID, @"money":money}


#pragma mark ------------------ 生态推广
#pragma mark -- 推广城市
#define url_interface_spread_spreadcity HCStrUrlFormat(url_interface_format, @"Spread", @"spreadCity")
#define interface_param_spread_spreadcity(userID) @{@"user_id":userID}

#pragma mark -- 生态推广列表
#define url_interface_spread_spreadList HCStrUrlFormat(url_interface_format, @"Spread", @"spreadList")
#define interface_param_spread_spreadList(userID, page, size) @{@"user_id":userID, @"page":page, @"size":size}

#pragma mark -- 生态推广详情
#define url_interface_spread_spreaddetail HCStrUrlFormat(url_interface_format, @"Spread", @"spreadDetail")
#define interface_param_spread_spreaddetail(spreadID) @{@"spread_id":spreadID}

#pragma mark -- 计算价钱
#define url_interface_spread_reckon HCStrUrlFormat(url_interface_format, @"Spread", @"reckon")
#define interface_param_spread_reckon(userID, area, time) @{@"user_id":userID, @"area":area, @"time":time}

#pragma mark -- 订单提交
#define url_interface_spread_submit HCStrUrlFormat(url_interface_format, @"Spread", @"submit")
#define interface_param_spread_submit(userID, area, time, isOffset) @{@"user_id":userID, @"area":area, @"time":time, @"is_offset":isOffset}

#pragma mark --- 支付回调
#define url_interface_spread_paynotify HCStrUrlFormat(url_interface_format, @"Spread", @"payNotify")
#define interface_param_spread_paynotify(spreadID, spreadSN, userID) @{@"spread_id":spreadID, @"spread_sn":spreadSN, @"user_id":userID}

























#pragma mark --------------------------------- v1.0 接口
#pragma mark ------------------ 公共接口
#pragma mark --- 获取机构类型
#define url_interface_getenterprisecategorys HCStrUrlFormat(url_interface_format, @"User/GetEnterpriseCategorys")
#define interface_param_getenterprisecategorys() HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d", 99, 1)
#pragma mark --- 获取分类列表
#define url_interface_getfilterlist HCStrUrlFormat(url_interface_format, @"Category/GetFilterList")
#pragma mark --- 普通搜索
#define url_interface_searcharticle HCStrUrlFormat(url_interface_format, @"Article")
#define interface_param_searcharticle(area, keyword, categoryId, mechanismId, expertid, tag, articletype, pageSize, pageIndex) HCStrUrlFormat(@"?area=%@&keyword=%@&categoryId=%d&mechanismId=%d&expertid=%d&tag=%d&articletype=%d&pageSize=%d&pageIndex=%d", area, keyword, categoryId, mechanismId, expertid, tag, articletype, pageSize, pageIndex)
#pragma mark --- 全站搜索
#define url_interface_getsearch HCStrUrlFormat(url_interface_format, @"Article/GetSearch")
#define interface_param_getsearch(area, keyword, pageSize, pageIndex) HCStrUrlFormat(@"?area=%@&keyword=%@&pageSize=%d&pageIndex=%d", area, keyword, pageSize, pageIndex)
#pragma mark --- 下载判断
#define url_interface_downloaddocument HCStrUrlFormat(url_interface_format, @"Article/DownloadDocument")
#define interface_param_downloaddocument(docID) HCStrUrlFormat(@"?id=%d", docID)


#pragma mark ------------------ 完善企业接口
#pragma mark --- 完善企业列表
#define url_interface_getenterpriselist HCStrUrlFormat(url_interface_format, @"User/GetEnterpriseList")
#define interface_param_getenterpriselist(keyword, area, industryID, pageSize, pageIndex) HCStrUrlFormat(@"?keyword=%@&area=%@&industryid=%d&pageSize=%d&pageIndex=%d", keyword, area, industryID, pageSize, pageIndex)


#pragma mark ------------------ 首页接口
#pragma mark --- 轮播图
#define url_interface_carousels HCStrUrlFormat(url_interface_format, @"Carousel")
#pragma mark --- 首页分类
#define url_interface_getcategory HCStrUrlFormat(url_interface_format, @"Category/Get")
#pragma mark --- 今日焦点
#define url_interface_gettodayfocus HCStrUrlFormat(url_interface_format, @"Category/GetTodayFocus")
#define interface_param_gettodayfocus(area, pageSize, pageIndex) HCStrUrlFormat(@"?area=\"%@\"&pageSize=%d&pageIndex=%d", area, pageSize, pageIndex)
#pragma mark --- 明星专家列表
#define url_interface_weekexpertlist HCStrUrlFormat(url_interface_format, @"User/GetExpertList")
#define interface_param_weekexpertlist(area, pageSize, pageIndex) HCStrUrlFormat(@"?area='%@'&pageSize=%d&pageIndex=%d", area, pageSize, pageIndex)

#pragma mark ------------------ 用户接口
#pragma mark --- 登录
#define url_interface_userlogin HCStrUrlFormat(url_interface_format, @"User/Login")
#define interface_param_userlogin(user, pwd) HCStrUrlFormat(@"?strUser=%@&strPwd=%@", user, pwd)
#pragma mark --- 获取用户信息
#define url_interface_getuserinfo HCStrUrlFormat(url_interface_format, @"User/GetUserInfo?time=''")
#pragma mark --- 编辑用户信息
#define url_interface_edituserinfo HCStrUrlFormat(url_interface_format, @"User/EditUserInfo?time=''")
#define interface_param_edituserinfo(userDataInfo, imgs) [AFUploadImageShell createWithImgs:imgs jsonParams:userDataInfo]
#pragma mark --- 发送短信验证码
#define url_interface_usersendsmscode HCStrUrlFormat(url_interface_format, @"User/SendSMSCode")
#define interface_param_usersendsmscode(mobile) HCStrUrlFormat(@"?strMobile=%@", mobile)
#pragma mark --- 手机登录
#define url_interface_userloginmobile HCStrUrlFormat(url_interface_format, @"User/LoginMobile")
#define interface_param_userloginmobile(mobile, code) HCStrUrlFormat(@"?strMobile=%@&strCode=%@", mobile, code)
#pragma mark --- 第三方登录
#define url_interface_userloginthirdparty HCStrUrlFormat(url_interface_format, @"User/LoginThirdParty")
#define interface_param_userloginthirdparty(token, nickname, header, sex, type) HCStrUrlFormat(@"?token=%@&nickname=%@&header=%@&sex=%@&type=%@", token, nickname, header, sex, type)
#pragma mark --- 修改密码
#define url_interface_editpassword HCStrUrlFormat(url_interface_format, @"User/EditPassword")
#define interface_param_editpassword(oldPwd, newPwd, isCheck) HCStrUrlFormat(@"?oldPassword=%@&newPassword=%@&confirmPassword=%@&isCheckOldPassword=%@", oldPwd, newPwd, newPwd, isCheck)
#pragma mark --- 手机注册
#define url_interface_userregister HCStrUrlFormat(url_interface_format, @"User/Register")
#define interface_param_userregister(username, password) HCStrUrlFormat(@"?userName=%@&password=%@", username, password)
#pragma mark --- 获取未读信息
#define url_interface_getusermessages HCStrUrlFormat(url_interface_format, @"User/GetUserMessages")
#define interface_param_getusermessages(status) HCStrUrlFormat(@"?status=%d", status) //状态(-1全部;0未读;1已读)
#pragma mark --- 设置未读信息已读状态
#define url_interface_readusermessages HCStrUrlFormat(url_interface_format, @"User/ReadUserMessages?time=''")
#pragma mark --- 获取税收类型
#define url_interface_gettaxrates HCStrUrlFormat(url_interface_format, @"User/GetTaxRates")
#define interface_param_gettaxrates(taxMode) HCStrUrlFormat(@"?TaxMode=%d", taxMode) //(0噪声;1固体污染物;2大气污染物;3水污染物;)
#pragma mark --- 计算税费
#define url_interface_taxcollector HCStrUrlFormat(url_interface_format, @"User/TaxCollector?time=''")
#pragma mark --- 获取地区信息
#define url_interface_getpca HCStrUrlFormat(url_interface_format, @"User/GetPCA?time=''")
#pragma mark --- 保存计算查询记录
#define url_interface_savetaxcollector HCStrUrlFormat(url_interface_format, @"User/SaveTaxCollector?time=''")
#pragma mark --- 获取保存计算查询记录
#define url_interface_gettaxrecords HCStrUrlFormat(url_interface_format, @"User/GetTaxRecords?time=''")
#pragma mark --- 申请为专家
#define url_interface_applyexpertInfo HCStrUrlFormat(url_interface_format, @"User/ApplyExpertInfo?time=''")
#define interface_param_applyexpertInfo(name, phone, sex, age, intro, goodat, imgs) [AFUploadImageShell createWithImgs:imgs jsonParams:@{@"RealName":name, @"Mobile":phone, @"Sex":sex, @"Age":age, @"Introduce":intro, @"GoodAtField":goodat}]
#pragma mark --- 申请为企业
#define url_interface_applyenterpriseinfo HCStrUrlFormat(url_interface_format, @"User/ApplyEnterpriseInfo?time=''")
#define interface_param_applyenterpriseinfo(company, establishDate, introduce, tel, address, contacts, registrationNumber, area, fax, enterpriseType, categoryIds, imgs) [AFUploadImageShell createWithImgs:imgs jsonParams:@{@"Company":company, @"EstablishDate":establishDate, @"Introduce":introduce, @"Tel":tel, @"Address":address, @"Contacts":contacts, @"RegistrationNumber":registrationNumber, @"Area":area, @"Fax":fax, @"EnterpriseType":enterpriseType, @"CategoryIds":categoryIds}]
#pragma mark --- 个人认证
#define url_interface_applypersoninfo HCStrUrlFormat(url_interface_format, @"User/ApplyPersonInfo?time=''")
#define interface_param_applypersoninfo(name, phone, sex, age, imgs) [AFUploadImageShell createWithImgs:imgs jsonParams:@{@"RealName":name, @"Mobile":phone, @"Sex":sex, @"Age":age}]
#pragma mark --- 申请托管
#define url_interface_applyenvironmenttrusts HCStrUrlFormat(url_interface_format, @"User/ApplyEnvironmentTrusts?time=''")
#define interface_param_applyenvironmenttrusts(address, area, content, createTime, email, enterpriseName, enterpriseType, environmentTrustID, establishDate, operation, produces, realName, remark, sortNumber, tel) @{@"Address":address, @"Area":area, @"Content":content, @"CreateTime":createTime, @"Email":email, @"EnterpriseName":enterpriseName, @"EnterpriseType":enterpriseType, @"EnvironmentTrustId":environmentTrustID, @"EatablishDate":establishDate, @"Operation":operation, @"Produces":produces, @"RealName":realName, @"Remark":remark, @"SortNumber":sortNumber, @"Tel":tel}
#pragma mark --- 获取种子套餐列表
#define url_interface_getseedorderlist HCStrUrlFormat(url_interface_format, @"User/GetSeedOrderList")
#define interface_param_getseedorderlist(keyword, pageIndex, pageSize) HCStrUrlFormat(@"?SeedOrderName=%@&pageSize=%d&pageIndex=%d", keyword, pageSize, pageIndex)
#pragma mark --- 生成订单号
#define url_interface_getordernum HCStrUrlFormat(url_interface_format, @"User/GetOrderNum?time=''")
#pragma mark --- 购买种子
#define url_interface_addseedorderrecord HCStrUrlFormat(url_interface_format, @"User/AddSeedOrderRecord?time=''")
#define interface_param_addseedorderrecord(recordNum, recordID, orderID, count, price) @{@"RecordNum":recordNum, @"SeedOrderRecordId":recordID, @"SeedOrderId":orderID, @"Count":count, @"Price":price, @"Status":@0, @"openid":@""}

#pragma mark ------------------ 咨询接口
#pragma mark --- 咨询提问
#define url_interface_consultation HCStrUrlFormat(url_interface_format, @"Consultation/Consultation?time=''")
#define interface_param_consultation(expertID, title, content, seed, imgs) [AFUploadImageShell createWithImgs:imgs params:@{@"expertId":expertID, @"title":title, @"content":content, @"seed":seed}]
#pragma mark --- 获取公开咨询
#define url_interface_getopenconsultations HCStrUrlFormat(url_interface_format, @"Consultation/GetOpenConsultations")
#define interface_param_getopenconsultations(pageSize, pageIndex) HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d", pageSize, pageIndex)
#pragma mark --- 回复咨询
#define url_interface_replyconsultations HCStrUrlFormat(url_interface_format, @"Consultation/ReplyConsultation")
#define interface_param_replyconsultations(consultationID, content) HCStrUrlFormat(@"?consultationId=%@&content=%@", consultationID, content)
#pragma mark --- 我的咨询
#define url_interface_getmyconsultation HCStrUrlFormat(url_interface_format, @"Consultation/GetMyConsultation")
#define interface_param_getmyconsultation(pagesize, pageindex) HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d", pagesize, pageindex)
#pragma mark --- 最新咨询
#define url_interface_getnewconsultations HCStrUrlFormat(url_interface_format, @"Consultation/GetNewConsultations")
#define interface_param_getnewconsultations(pagesize, pageindex) HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d", pagesize, pageindex)
#pragma mark --- 公开咨询是否答复列表
#define url_interface_getopenconsultationforreply HCStrUrlFormat(url_interface_format, @"Consultation/GetOpenConsultationsForReply")
#define interface_param_getopenconsultationforreply(pagesize, pageindex, replyStatu) HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d&replyStatu=%d", pagesize, pageindex, replyStatu)
#pragma mark --- 对我的咨询（未答复）
#define url_interface_getmyconsultationforreply HCStrUrlFormat(url_interface_format, @"Consultation/GetMyConsultationsForReply")
#define interface_param_getmyconsultationforreply(pagesize, pageindex, replyStatu) HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d&replyStatu=%d", pagesize, pageindex, replyStatu)
#pragma mark --- 我的答复【公开的和对我的咨询】
#define url_interface_getmyreply HCStrUrlFormat(url_interface_format, @"Consultation/GetMyReply")
#define interface_param_getmyreply(pagesize, pageindex) HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d", pagesize, pageindex)

#pragma mark ------------------ 文档接口
#pragma mark --- 我的文档列表
#define url_interface_getmydocument HCStrUrlFormat(url_interface_format, @"Document/GetMyDocument")
#define interface_param_getmydocument(pageSize, pageIndex) HCStrUrlFormat(@"?pageSize=%d&pageIndex=%d", pageSize, pageIndex)

#pragma mark ------------------ 收藏接口
#pragma mark --- 我的收藏列表
#define url_interface_getmyfavorite HCStrUrlFormat(url_interface_format, @"Favorite/GetMyFavorite")
#define interface_param_getmyfavorite(pageSize, pageIndex) HCStrUrlFormat(@"?type=0&pageSize=%d&pageIndex=%d", pageSize, pageIndex)
#pragma mark --- 收藏
#define url_interface_addmyfavorite HCStrUrlFormat(url_interface_format, @"Favorite/AddMyFavorite")
#define interface_param_addmyfavorite(favoriteType, refId, actionType) HCStrUrlFormat(@"?favoriteType=%d&refId=%d&actionType=%d", favoriteType, refId, actionType)


#endif /* EPNetConstant_h */
